package com.xingxue.shopping.model.persist;

public class Producer {

	 private Integer producerid;
	 private String proname;
	 private Integer prophone;
	public Integer getProducerid() {
		return producerid;
	}
	public void setProducerid(Integer producerid) {
		this.producerid = producerid;
	}
	public String getProname() {
		return proname;
	}
	public void setProname(String proname) {
		this.proname = proname;
	}
	public Integer getProphone() {
		return prophone;
	}
	public void setProphone(Integer prophone) {
		this.prophone = prophone;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((producerid == null) ? 0 : producerid.hashCode());
		result = prime * result + ((proname == null) ? 0 : proname.hashCode());
		result = prime * result + ((prophone == null) ? 0 : prophone.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Producer other = (Producer) obj;
		if (producerid == null) {
			if (other.producerid != null)
				return false;
		} else if (!producerid.equals(other.producerid))
			return false;
		if (proname == null) {
			if (other.proname != null)
				return false;
		} else if (!proname.equals(other.proname))
			return false;
		if (prophone == null) {
			if (other.prophone != null)
				return false;
		} else if (!prophone.equals(other.prophone))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "producer [producerid=" + producerid + ", proname=" + proname + ", prophone=" + prophone + "]";
	}
	 
	 
	
}
